//
//  KFDAnnouncementTableViewCell.m
//  
//
//  Created by JIRENTIANXIANG on 6/23/15.
//
//

#import "KFDAnnouncementTableViewCell.h"
#import "NSDate+format.h"

@interface KFDAnnouncementTableViewCell ()

@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *dateLabel;

@end

@implementation KFDAnnouncementTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setAnnoucement:(KFDAnnouncementBrief *)annoucement
{
    self.titleLabel.text=annoucement.title;
    self.dateLabel.text=annoucement.date.year_month_day;
}

@end
